package service;

import Pojo.Paid;
import Pojo.QueryVo;
import Pojo.Zulist;
import dao.PaidMapper;
import dao.ZulistMapper;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service
@Transactional
public class PaidServiceImpl
  implements PaidService
{

  @Autowired
  private PaidMapper paidMapper;

  @Autowired
  private ZulistMapper zulistMapper;

  public List<Paid> selectall(QueryVo vo)
  {
    List list = this.paidMapper.selectall(vo);
    return list;
  }

  public Double selectsum(QueryVo vo)
  {
    Double sum = this.paidMapper.selectsum(vo);
    return sum;
  }

  public void deletepaid(Integer id)
  {
    this.paidMapper.deletepaid(id);
  }

  public List<Zulist> findzuuserlist()
    throws Exception
  {
    List list = this.zulistMapper.findzuuserlist();
    return list;
  }

  public Zulist findzukezulist(Integer id)
  {
    Zulist zulist = this.zulistMapper.findzukezulist(id);
    return zulist;
  }
}